package com.easy.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easy.common.bean.Order;
import com.easy.common.bean.OrderItems;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper extends BaseMapper<Order>{
        // 插入订单项
        void insertOrderItem(OrderItems orderItems);

        // 根据 ID 查询订单项
        OrderItems selectOrderItemById(Integer id);

        // 更新订单项
        void updateOrderItemById(OrderItems orderItems);

        // 根据 ID 删除订单项
        int deleteOrderItemById(Integer id);
}
